<?php
/**
 * <b>RUBIK IT Solution & Development ltd.</b>
 *
 * PROJECT		: Rubik Ultimate Framework
 * @version 	: 1.1
 * COPYRIGHT    : 2008
 * ------------------------------------------------------
 * 
 * Created on	:  Jun 17, 2008
 * 
 */

// no direct access
defined ( '_FW_EXEC' ) or die ( 'Restricted access' );

class SiteTemplate extends Object {
	/**
	 * The template name
	 *
	 * @var string
	 */
	var $_templateName;
	
	function __construct($tmplName) {
		$this->_templateName = $tmplName;
	}
	
	/**
	 * Get the template string that has been filled up with the data 
	 *
	 * @param string $tmplFile
	 * @param string $app if empty -> get system application
	 * 
	 * @return string template string that has been filled up with the data. 
	 */
	function getAppTemplate($tmplFile, $app = null) {
		if (empty ( $app )) {
			$app = SystemSite::getApplicationName ();
		}
		
		//TODO need to implement the rest
		

		return $templateString;
	}
	
	/**
	 * Echo the template string that has been filled up with the data 
	 *
	 * @param string $tmplFile
	 * @param string $app if empty -> get system application
	 */
	function printAppTemplate($tmplFile, $app = null) {
		echo $this->getAppTemplate ( $tmplFile, $app );
	}
	
	/**
	 * Echo the template string that has been filled up with the data 
	 *
	 * @param string $tmplFile
	 * @param string $mod module
	 */
	function printModuleTemplate($tmplFile, $mod) {
		echo $this->getModuleTemplate ( $tmplFile, $mod );
	}
}
?>